﻿<UserControl x:Class="SilverlightHVP.View.SmoothStreamPlayer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
               
    xmlns:SmoothPlayer="clr-namespace:Microsoft.SilverlightMediaFramework.Player;assembly=Microsoft.SilverlightMediaFramework.Player"
    xmlns:hvp="clr-namespace:SilverlightHVP.View"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="Yellow">
      <Grid.Resources>
            <Style x:Key="RRRepeatButtonStyle" TargetType="RepeatButton">
                <Setter Property="Background" Value="#FF1F3B53"/>
                <Setter Property="Foreground" Value="#FF000000"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFA3AEB9" Offset="0"/>
                            <GradientStop Color="#FF8399A9" Offset="0.375"/>
                            <GradientStop Color="#FF718597" Offset="0.375"/>
                            <GradientStop Color="#FF617584" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="RepeatButton">
                            <Grid d:DesignWidth="28" d:DesignHeight="28">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Background">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
                                                    <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.568682,0.959596" StartPoint="0.568682,0.0606061">
                                            <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                            <GradientStop Color="#FF040404" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                                <Border x:Name="MouseOverBorder" Background="#33FAF3F3" Margin="1" Opacity="0"/>
                                <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" StrokeThickness="1"/>
                                <Path x:Name="RRGliff" Data="M2,0.018981887 L2,8.0189819 L-6.5137792,4.009491 z M11.01534,0.047732037 L11.01534,8.0100718 L2.1159408,4.009491 z" Fill="#FFFEFEFE" HorizontalAlignment="Center" Height="7" Margin="0" Opacity="0.5" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="16"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="FFRepeatButtonStyle" TargetType="RepeatButton">
                <Setter Property="Background" Value="#FF1F3B53"/>
                <Setter Property="Foreground" Value="#FF000000"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFA3AEB9" Offset="0"/>
                            <GradientStop Color="#FF8399A9" Offset="0.375"/>
                            <GradientStop Color="#FF718597" Offset="0.375"/>
                            <GradientStop Color="#FF617584" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="RepeatButton">
                            <Grid d:DesignWidth="28" d:DesignHeight="28">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Background">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
                                                    <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.568682,0.959596" StartPoint="0.568682,0.0606061">
                                            <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                            <GradientStop Color="#FF040404" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                                <Border x:Name="MouseOverBorder" Background="#33FAF3F3" Margin="1" Opacity="0"/>
                                <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" StrokeThickness="1"/>
                                <Path x:Name="FFGliff" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M0,0 L8.8618002,3.87006 L0,7.9623399 z" Fill="#FFFCFAFA" HorizontalAlignment="Center" Height="6.833" Opacity="0.5" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="16"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="ReplayButtonStyle" TargetType="Button">
                <Setter Property="Background" Value="#FF1F3B53"/>
                <Setter Property="Foreground" Value="#FF000000"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFA3AEB9" Offset="0"/>
                            <GradientStop Color="#FF8399A9" Offset="0.375"/>
                            <GradientStop Color="#FF718597" Offset="0.375"/>
                            <GradientStop Color="#FF617584" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <Grid x:Name="grid" Height="28" Width="28" d:DesignWidth="20" d:DesignHeight="20">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="#26FCF9F9"/>
                                                </ColorAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused"/>
                                        <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Rectangle x:Name="ButtonBkg" Stroke="#FF434343">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0.568682,0.959596" StartPoint="0.568682,0.0606061">
                                            <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                            <GradientStop Color="#FF040404" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
                                <Rectangle x:Name="ButtonRolloverCommon" Fill="#33FCF9F9" Margin="1" Opacity="0"/>
                                <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                                <Path x:Name="ReplayGlif" Data="F1 M 63.3016,673.814C 65.187,673.814 66.7117,672.337 66.7117,670.515C 66.7117,668.693 65.187,667.216 63.3063,667.216C 61.6946,667.216 60.3445,668.301 59.9911,669.758L 61.7847,669.758L 58.8941,673.779L 56.2897,669.758L 58.0574,669.758C 58.4355,667.278 60.6415,665.375 63.3063,665.375C 66.2368,665.375 68.6124,667.677 68.6124,670.515C 68.6124,673.354 66.2368,675.655 63.3063,675.655L 63.3016,673.814 Z " Fill="#FFE1E1E1" Height="10.2799" Canvas.Left="56.2897" Opacity="0.4" Stretch="Fill" Canvas.Top="665.375" Width="12.3228"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="SloMOButtonStyle" TargetType="ToggleButton">
                <Setter Property="Background" Value="#FF1F3B53"/>
                <Setter Property="Foreground" Value="#FF000000"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFA3AEB9" Offset="0"/>
                            <GradientStop Color="#FF8399A9" Offset="0.375"/>
                            <GradientStop Color="#FF718597" Offset="0.375"/>
                            <GradientStop Color="#FF617584" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ToggleButton">
                            <Grid x:Name="grid" Height="18" d:DesignWidth="20" d:DesignHeight="18">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FF040404"/>
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FFA19E9E"/>
                                                </ColorAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CheckStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Checked"/>
                                        <VisualState x:Name="Unchecked"/>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused"/>
                                        <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Rectangle x:Name="ButtonBkg" Fill="#7F121212" Stroke="#3FFDFDFD"/>
                                <Rectangle x:Name="ButtonRolloverCommon" Margin="1" Opacity="0">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFA19E9E" Offset="0"/>
                                            <GradientStop Color="#FF020202" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
                                <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="ChapterBackButtonStyle" TargetType="Button">
                <Setter Property="Background" Value="#FF1F3B53"/>
                <Setter Property="Foreground" Value="#FF000000"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFA3AEB9" Offset="0"/>
                            <GradientStop Color="#FF8399A9" Offset="0.375"/>
                            <GradientStop Color="#FF718597" Offset="0.375"/>
                            <GradientStop Color="#FF617584" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <Grid x:Name="grid" Height="18">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FFA19E9E"/>
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="Black"/>
                                                </ColorAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.0300000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused"/>
                                        <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Rectangle x:Name="ButtonBkg" Fill="#7F121212" Stroke="#3FFDFDFD"/>
                                <Rectangle x:Name="ButtonRolloverCommon" Opacity="0">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFA19E9E" Offset="0"/>
                                            <GradientStop Color="#FF020202" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
                                <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="ChapterForwardButtonStyle" TargetType="Button">
                <Setter Property="Background" Value="#FF1F3B53"/>
                <Setter Property="Foreground" Value="#FF000000"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFA3AEB9" Offset="0"/>
                            <GradientStop Color="#FF8399A9" Offset="0.375"/>
                            <GradientStop Color="#FF718597" Offset="0.375"/>
                            <GradientStop Color="#FF617584" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <Grid x:Name="grid" Height="18" d:DesignWidth="20">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="Black"/>
                                                </ColorAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="ButtonRolloverCommon">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FFA19E9E"/>
                                                </ColorAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.0300000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused"/>
                                        <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Path x:Name="ButtonBkg" Data="M0.5,0.5 L16.5,0.5 C18.156855,0.5 19.5,1.8431457 19.5,3.5 L19.5,14.5 C19.5,16.156855 18.156855,17.5 16.5,17.5 L0.4375,17.5 C0.4375,17.5 0.5,8.25 0.5,8.25 C0.5,8.25 0.5,0.5 0.5,0.5 z" Fill="#7F121212" Margin="-0.062,0,0,0" Stretch="Fill" Stroke="#3FFDFDFD" UseLayoutRounding="False"/>
                                <Path x:Name="ButtonRolloverCommon" Data="M0,0 L15.5,0 C16.880713,0 18,1.1192881 18,2.5 L18,13.5 C18,14.880712 16.880713,16 15.5,16 L3.4459408E-06,16 C3.4459408E-06,16 0,7.5 0,7.5 C0,7.5 0,0 0,0 z" Margin="1" Opacity="0" Stretch="Fill" UseLayoutRounding="False">
                                    <Path.Fill>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFA19E9E" Offset="0"/>
                                            <GradientStop Color="#FF020202" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Path.Fill>
                                </Path>
                                <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="GoToLiveButtonStyle" TargetType="ToggleButton">
                <Setter Property="Background" Value="#FF1F3B53"/>
                <Setter Property="Foreground" Value="#FF000000"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFA3AEB9" Offset="0"/>
                            <GradientStop Color="#FF8399A9" Offset="0.375"/>
                            <GradientStop Color="#FF718597" Offset="0.375"/>
                            <GradientStop Color="#FF617584" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ToggleButton">
                            <Grid x:Name="grid" Height="28" Width="50">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LiveMouseOverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoLiveText">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoLiveText">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LiveMouseOverCommon">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled"/>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CheckStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Checked">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoToLiveText">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoToLiveCheckedContentPresenter">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unchecked">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoToLiveCheckedContentPresenter">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoToLiveUncheckedContentPresenter">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Indeterminate">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoToLiveText">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused"/>
                                        <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                            <GradientStop Color="#FF040404" Offset="0.983"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                                <Rectangle x:Name="LiveMouseOverCommon" Fill="#33FFFFFF" Margin="1" Opacity="0"/>
                                <ContentPresenter x:Name="GoToLiveUncheckedContentPresenter" HorizontalAlignment="Center" Opacity="0" VerticalAlignment="Center">
                                    <TextBlock x:Name="GoLiveText" Foreground="#FFFEFCFC" FontSize="10.667" FontFamily="Arial" Opacity="0.8" TextWrapping="Wrap" Text="Go Live"/>
                                </ContentPresenter>
                                <ContentPresenter x:Name="GoToLiveCheckedContentPresenter" HorizontalAlignment="Center" Opacity="0.3" VerticalAlignment="Center">
                                    <TextBlock x:Name="GoToLiveText" Foreground="#FFFEFCFC" FontSize="10.667" FontFamily="Arial" TextWrapping="Wrap" Text="Go Live"/>
                                </ContentPresenter>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="ThumbStyle" TargetType="Thumb">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Thumb">
                            <Grid x:Name="MainLayout">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused">
                                            <Storyboard/>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="#B2FFFFFF"/>
                                                </ColorAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.2"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                    <EasingColorKeyFrame KeyTime="00:00:00" Value="#B2FFFFFF"/>
                                                </ColorAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Border x:Name="ThumbPart" Cursor="Hand" Background="#FFFFFFFF" BorderThickness="1" BorderBrush="#FFFFFFFF"/>
                                <Rectangle x:Name="ThumbPartRollover" Fill="#FFFFFFFF" Margin="1" Opacity="0"/>
                                <Border x:Name="ThumbTexture" Cursor="Hand" BorderThickness="1" Margin="0">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                            <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                                <Border x:Name="ThumbTexturehighlight" Cursor="Hand" BorderThickness="1" Margin="1" Opacity="0.345">
                                    <Border.BorderBrush>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                            <GradientStop Color="White" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.BorderBrush>
                                </Border>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style TargetType="SmoothPlayer:Scrubber" x:Key="ScrubberStyle">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="SmoothPlayer:Scrubber">
                            <Grid x:Name="MainLayout">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="0:0:0.25"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver"/>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="MainLayout" Storyboard.TargetProperty="(UIElement.Opacity)" To="0.5"/>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="0:0:0.25"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Unfocused"/>
                                        <VisualState x:Name="Focused">
                                            <Storyboard/>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="LiveStates">
                                        <VisualState x:Name="Live">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HorizontalAvailableBar" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="VOD">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HorizontalAvailableBar" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HorizontalAvailableBar" Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)">
                                                    <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <HorizontalAlignment>Stretch</HorizontalAlignment>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Grid x:Name="HorizontalTemplate">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2">
                                        <RepeatButton.Template>
                                            <ControlTemplate>
                                                <Border Height="2" Grid.Column="0" Grid.ColumnSpan="3" BorderThickness="0">
                                                    <Border.Background>
                                                        <LinearGradientBrush StartPoint="0.756383,0.125199" EndPoint="0.756383,0.890751">
                                                            <GradientStop Color="#FF000000" Offset="0"/>
                                                            <GradientStop Color="#FF232323" Offset="0.32"/>
                                                            <GradientStop Color="#FF464646" Offset="1"/>
                                                        </LinearGradientBrush>

                                                    </Border.Background>
                                                </Border>
                                            </ControlTemplate>
                                        </RepeatButton.Template>
                                    </RepeatButton>
                                    <Border x:Name="HorizontalAvailableBar" Height="2" Grid.Column="0" Grid.ColumnSpan="3" BorderThickness="0,0,1,0" Opacity="0" HorizontalAlignment="Left" Margin="0" Padding="1,0" BorderBrush="#FF262626">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.652882,0.0932996" EndPoint="0.652882,0.92265">
                                                <LinearGradientBrush.GradientStops>
                                                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                    <GradientStop Color="#FFFFFFFF" Offset="0.540001"/>
                                                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                                </LinearGradientBrush.GradientStops>
                                            </LinearGradientBrush>

                                        </Border.Background>
                                    </Border>
                                    <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Grid.Column="0">
                                        <RepeatButton.Template>
                                            <ControlTemplate>
                                                <Border Height="2" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="#FF858585">
                                                    <Border.Background>
                                                        <LinearGradientBrush StartPoint="0.347118,0.0932996" EndPoint="0.347118,0.92265">
                                                            <GradientStop Color="#FFFFFFFF"/>
                                                            <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                                        </LinearGradientBrush>

                                                    </Border.Background>
                                                </Border>
                                            </ControlTemplate>
                                        </RepeatButton.Template>
                                    </RepeatButton>
                                    <Thumb x:Name="HorizontalThumb" Height="16" HorizontalAlignment="Left" Style="{StaticResource ThumbStyle}" Width="6" Background="#00FFFFFF" Grid.Column="1"/>
                                    <ItemsControl x:Name="MarkersElement" Grid.Column="0" Grid.ColumnSpan="3">
                                        <ItemsControl.ItemTemplate>
                                            <DataTemplate>
                                                <SmoothPlayer:MarkerControl HorizontalAlignment="Left" VerticalAlignment="Top" />
                                            </DataTemplate>
                                        </ItemsControl.ItemTemplate>
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <SmoothPlayer:MarkerItemsPanel ThumbWidth="{Binding Width, ElementName=HorizontalThumb}"/>
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                    </ItemsControl>
                                </Grid>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style TargetType="SmoothPlayer:PlayControl" x:Key="PlayControlStyle">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="SmoothPlayer:PlayControl">
                            <Grid x:Name="MainLayout" Height="28" Width="50">
                                <Grid.Resources>
                                    <LinearGradientBrush x:Key="NormalMode_Brush">
                                        <GradientStop Color="#ff000000" Offset="0"/>
                                        <GradientStop Color="#ffa1a1a1" Offset="1"/>
                                    </LinearGradientBrush>
                                </Grid.Resources>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path2" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path3" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path4" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ButtonRollover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ButtonRollover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path2" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path3" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path4" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled"/>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="PlayStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                            <VisualTransition From="Paused" GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Playing">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Paused">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ButtonPulseAnimation" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.001"/>
                                                    <EasingDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
                                                    <EasingDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Stopped">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="SlowMotion">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="FastForwarding">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Rewinding">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Grid x:Name="PlayControlRootElement" Margin="0" RenderTransformOrigin="0.5,0.5" Background="Transparent">
                                    <Rectangle x:Name="ButtonBackground" Stroke="#00434343">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <LinearGradientBrush.GradientStops>
                                                    <GradientStop Color="#002E2E2E" Offset="0"/>
                                                    <GradientStop Color="#00040404" Offset="1"/>
                                                </LinearGradientBrush.GradientStops>
                                            </LinearGradientBrush>

                                        </Rectangle.Fill>
                                    </Rectangle>
                                    <Rectangle x:Name="ButtonRollover" Fill="#00FFFFFF" Margin="1" Opacity="0"/>
                                    <Rectangle x:Name="ButtonPulseAnimation" Fill="#00FFFFFF" Margin="1" Opacity="0"/>
                                    <Grid x:Name="PlayingElement" Height="16" Width="18" Opacity="0">
                                        <Rectangle x:Name="rectangle" Fill="#FFFFFF" Stretch="Fill" HorizontalAlignment="Left" Margin="0,0,0,0" Width="5" Opacity="1"/>
                                        <Rectangle x:Name="rectangle1" Fill="#FFFFFF" Stretch="Fill" HorizontalAlignment="Stretch" Margin="5,0,0,0" Width="5" Opacity="1"/>
                                    </Grid>
                                    <Grid x:Name="PausedElement" HorizontalAlignment="Center" VerticalAlignment="Center">
                                        <Path x:Name="path" Fill="#FFFFFF" Stretch="Fill" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="18" Opacity="1" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z"/>
                                    </Grid>
                                    <Grid x:Name="StoppedElement" HorizontalAlignment="Center" VerticalAlignment="Center">
                                        <Path x:Name="path1" Fill="#FFFFFF" Stretch="Fill" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="18" Opacity="1" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z"/>
                                    </Grid>
                                    <Grid x:Name="SlowMotionElement" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0" RenderTransformOrigin="0.5,0.5">
                                        <Path x:Name="path2" Fill="#FFFCFCFC" Stretch="Fill" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0.5" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z"/>
                                    </Grid>
                                    <Grid x:Name="FastForwardingElement" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0">
                                        <Path x:Name="path3" Stretch="Fill" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0.5" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Fill="White"/>
                                    </Grid>
                                    <Grid x:Name="RewindingElement" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0">
                                        <Path x:Name="path4" Stretch="Fill" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0.5" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Fill="#FFFCFCFC"/>
                                    </Grid>
                                </Grid>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="FullScreenElementStyle" TargetType="ToggleButton">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ToggleButton">
                            <Grid x:Name="MainLayout" Width="28">
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Focused">
                                            <Storyboard/>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="0.7" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MainLayout"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MainLayout"/>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRollover">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FromFullScreen">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Tofullscreen">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MainLayout"/>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonRollover">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FromFullScreen">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Tofullscreen">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MainLayout"/>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="CheckStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Checked">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="UncheckedPart">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unchecked">
                                            <Storyboard>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="CheckedPart">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Rectangle x:Name="ButtonBackground" Stroke="#00FFFFFF">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0.568682,0.959596" StartPoint="0.568682,0.0606061">
                                            <GradientStop Color="#002E2E2E" Offset="0"/>
                                            <GradientStop Color="#00040404" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
                                <Rectangle x:Name="ButtonRollover" Fill="#00FFFFFF" Opacity="0"/>
                                <Border x:Name="CheckedPart" CornerRadius="1">
                                    <Path x:Name="FromFullScreen" Data="M18.019999,11.052003 L19.019999,11.052003 L19.019999,12.052003 L18.019999,12.052003 z M16.019999,9.0520029 L17.019999,9.0520029 L18.019999,9.0520029 L19.019999,9.0520029 L19.019999,10.052003 L18.019999,10.052003 L18.019999,11.052003 L17.019999,11.052003 L17.019999,12.052003 L16.019999,12.052003 L16.019999,11.052003 L16.019999,10.052003 z M0,9.0520029 L0.99999976,9.0520029 L1.9999999,9.0520039 L3,9.0520039 L3,10.052003 L3,11.052003 L3,12.052003 L1.9999999,12.052003 L1.9999999,11.052003 L1,11.052003 L1,12.052003 L0,12.052003 L0,11.052003 L0.99999976,11.052003 L0.99999976,10.052003 L0,10.052003 z M3.992002,3.0000019 L14.992002,3.0000019 L14.992002,9.0000019 L3.992002,9.0000019 z M16.019999,0 L17.019999,0 L17.019999,1 L18.019999,1 L18.019999,0 L19.019999,0 L19.019999,1.0000005 L18.019999,1.0000005 L18.019999,2.0000002 L19.019999,2.0000002 L19.019999,3 L18.019999,3 L17.019999,2.9999998 L16.019999,2.9999998 L16.019999,2.0000002 L16.019999,1 z M0,0 L1,0 L1,0.99999976 L2.0000002,0.99999976 L2.0000002,0 L3,0 L3,0.99999976 L2.9999995,1.9999999 L2.9999995,3 L2.0000002,3 L1,3 L0,3 L0,1.9999999 L1,1.9999999 L1,1 L0,1 z" Fill="White" Height="16" Margin="5,3" Opacity="1" Stretch="Fill" UseLayoutRounding="False"/>
                                </Border>
                                <Border x:Name="UncheckedPart" CornerRadius="2" Opacity="1">
                                    <Path x:Name="Tofullscreen" Data="M18,11 L19,11 L19,12 L19,13 L19,14 L18,14 L17,14 L16,14 L16,13 L17,13 L17,12 L18,12 z M0,11 L0.99999988,11 L0.99999988,12 L2,12 L2,13 L3,13 L3,14 L2,14 L0.99999988,14 L0,14 L0,13 L0.99999988,13 L0,13 L0,12 z M2,2 L17,2 L17,12 L2,12 z M16,0 L17,0 L18,0 L19,0 L19,1 L19,2 L19,3 L18,3 L18,2 L17,2 L17,1 L16,1 z M0,0 L0.99999988,0 L2,0 L3.0000005,0 L3.0000005,1 L2,1 L2,2 L0.99999988,2 L0.99999988,3 L0,3 L0,2 L0,1 z" Fill="#FFFCFCFC" HorizontalAlignment="Center" Height="16" Margin="5,3" Opacity="1" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center"/>
                                </Border>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="SLHVPTemplate" TargetType="SmoothPlayer:Player">
                <Setter Property="Background" Value="Black"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="SmoothPlayer:Player">
                            <Grid x:Name="PlayerRoot" Background="{TemplateBinding Background}">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="00:00:00.4000000"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="Normal">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ControllerContainer"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ControllerContainer"/>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="LiveStates">
                                        <VisualState x:Name="Live">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GoToLiveElement">
                                                    <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Visible</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GoToLiveElement">
                                                    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                </DoubleAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="GoToLive">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GoToLiveElement">
                                                    <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Visible</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="VOD">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GoToLiveElement">
                                                    <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Collapsed</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="TimeSeparatorElement">
                                                    <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Visible</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="TotalTimeElement">
                                                    <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Visible</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="TOCVisibility">
                                        <VisualStateGroup.Transitions>
                                            <VisualTransition GeneratedDuration="0:0:0.3"/>
                                        </VisualStateGroup.Transitions>
                                        <VisualState x:Name="ShowTOC">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" 
                              Storyboard.TargetName="textBlock">
                                                    <DiscreteObjectKeyFrame KeyTime="0">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Visible</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="HideTOC">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" 
                                                             Storyboard.TargetName="textBlock">
                                                    <DiscreteObjectKeyFrame KeyTime="0">
                                                        <DiscreteObjectKeyFrame.Value>
                                                            <Visibility>Collapsed</Visibility>
                                                        </DiscreteObjectKeyFrame.Value>
                                                    </DiscreteObjectKeyFrame>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                
                                <ContentPresenter x:Name="MediaPresenterElement"/>
                                
                                <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center" >
                                    <TextBlock x:Name="textBlock"
                                        TextWrapping="Wrap"
                                        Text="Link to video"
                                        Foreground="White"
                                        FontFamily="Georgia"
                                        FontSize="14"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Stretch"
                                        Visibility="Collapsed" />
                                </StackPanel>
                                
                                <TextBlock x:Name="BufferingElement" Foreground="White" HorizontalAlignment="Center" Grid.Row="0" Text="Buffering..." Visibility="Collapsed" VerticalAlignment="Center" d:IsHidden="True"/>
                                
                                <SmoothPlayer:CountdownTimeline x:Name="CountdownElement" Grid.Row="1" Visibility="Collapsed"/>
                                
                                <Grid x:Name="ControllerContainer" Grid.Row="0" VerticalAlignment="Bottom" Margin="10">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition x:Name="PlayColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="RewindColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="FastForwardColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="ReplayColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="SlowMotionColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="ChapterMarkerPreviousColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="ChapterMarkerNextColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="PositionColumn" Width="*"/>
                                        <ColumnDefinition x:Name="PositionTextColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="GoToLiveColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="BitrateColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="VolumeColumn" Width="Auto"/>
                                        <ColumnDefinition x:Name="FullscreenColumn" Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.Background>
                                        <LinearGradientBrush EndPoint="0.079977,-0.0538737" StartPoint="0.079977,0.936025">
                                            <GradientStop Color="#111111" Offset="0"/>
                                        </LinearGradientBrush>
                                    </Grid.Background>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    
                                    <SmoothPlayer:PlayControl Style="{StaticResource PlayControlStyle}" x:Name="PlayElement" Grid.Column="0" Margin="0"/>
                                    
                                    <RepeatButton x:Name="RewindElement" BorderThickness="0" Grid.Column="1" Height="28" Interval="750" Margin="-1,0,0,0" Style="{StaticResource RRRepeatButtonStyle}" Visibility="Collapsed" Width="28">
                                        <RepeatButton.BorderBrush>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                                <GradientStop Color="#FF617584" Offset="1"/>
                                            </LinearGradientBrush>
                                        </RepeatButton.BorderBrush>
                                    </RepeatButton>
                                    <RepeatButton x:Name="FastForwardElement" BorderThickness="0" Grid.Column="2" Height="28" Interval="750" Margin="-1,0,0,0" Style="{StaticResource FFRepeatButtonStyle}" Visibility="Collapsed" Width="28"/>
                                    <Button x:Name="ReplayElement" BorderThickness="0" Grid.Column="3" Height="28" Style="{StaticResource ReplayButtonStyle}" Visibility="Collapsed" Width="28" d:IsHidden="True"/>
                                    <ToggleButton x:Name="SlowMotionElement" Grid.Column="4" Height="20" Margin="-1,4,0,4" Style="{StaticResource SloMOButtonStyle}" Visibility="Collapsed" Width="20" d:IsHidden="True"/>
                                    <Button x:Name="ChapterMarkerPreviousElement" Content="pc" Grid.Column="5" Height="20" Margin="-1,0,0,0" Style="{StaticResource ChapterBackButtonStyle}" Visibility="Collapsed" Width="20" d:IsHidden="True"/>
                                    <Button x:Name="ChapterMarkerNextElement" Content="nc" Grid.Column="6" Height="20" Margin="-1,0,0,0" Style="{StaticResource ChapterForwardButtonStyle}" Visibility="Collapsed" Width="20" d:IsHidden="True"/>
                                    <SmoothPlayer:Scrubber x:Name="PositionElement" Style="{StaticResource ScrubberStyle}" AvailableVisibility="Visible" Grid.Column="7" Margin="8,2,8,2" VerticalAlignment="Center"/>
                                    <Border Visibility="Collapsed" x:Name="TimeContainer" BorderBrush="#7F434343" BorderThickness="1" Grid.Column="8" Margin="0">
                                        <Grid Height="28" MaxHeight="28" MinWidth="60" MinHeight="28" UseLayoutRounding="True">
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="0.25*"/>
                                                    <ColumnDefinition Width="0.367*"/>
                                                    <ColumnDefinition Width="0.383*"/>
                                                </Grid.ColumnDefinitions>
                                                <TextBlock x:Name="CurrentTimeElement" Foreground="#FFC1C1C1" FontSize="9" HorizontalAlignment="Left" Padding="8,0,0,0" TextAlignment="Center" VerticalAlignment="Center"/>
                                                <TextBlock x:Name="TimeSeparatorElement" Grid.Column="1" Foreground="#FFFDFAFA" FontSize="9" HorizontalAlignment="Center" Margin="3,0" Opacity="0.4" Text="|" Visibility="Collapsed" VerticalAlignment="Center"/>
                                                <TextBlock x:Name="TotalTimeElement" Grid.Column="2" Foreground="#FFFDFDFD" FontSize="9" HorizontalAlignment="Left" Opacity="0.4" Padding="0,0,8,0" Visibility="Collapsed" VerticalAlignment="Center"/>
                                            </Grid>
                                        </Grid>
                                    </Border>
                                    <ToggleButton Visibility="Collapsed" x:Name="GoToLiveElement" BorderThickness="0" Grid.Column="9" Height="28" Margin="-1,0,0,0" Style="{StaticResource GoToLiveButtonStyle}" Width="50"/>
                                    <SmoothPlayer:Bitrate x:Name="BitrateElement" Grid.Column="10" Height="20" Visibility="Collapsed" Width="20"/>
                                    <Grid Visibility="Collapsed" x:Name="VolumeExtendWraper" Grid.Column="11" Height="150" Margin="-1,-150,-1,0" VerticalAlignment="Bottom" Width="28">
                                        <SmoothPlayer:VolumeControl x:Name="VolumeElement" HorizontalAlignment="Center" VerticalAlignment="Bottom" VolumeLevel=".5" Width="28"/>
                                    </Grid>
                                    <ToggleButton  x:Name="FullScreenElement" BorderThickness="0" Grid.Column="12" HorizontalContentAlignment="Stretch" Padding="0" Style="{StaticResource FullScreenElementStyle}" VerticalContentAlignment="Stretch"/>
                                    <Rectangle  x:Name="DividerStoke" Grid.ColumnSpan="13" Stroke="Gray" StrokeThickness="1"/>
                                </Grid>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Grid.Resources>

        
        <SmoothPlayer:Player Style="{StaticResource SLHVPTemplate}"  x:Name="smoothPlayer"     >
         <hvp:HVPCoreMediaElement
            x:Name="corePlayer"
            SmoothStreamingSource="{Binding URI}"
            AutoPlay="True"
            PositionOverride="{Binding Offset}"
            Position="{Binding PlayerPosition, Mode=TwoWay}" />
      </SmoothPlayer:Player>
    </Grid>
</UserControl>


<!-- Change 3/6 - Made URI one way -->
<!--

-->